CC=gcc
CFLAGS=-W -Wall -g -I/net/local/pvm3/include
LDFLAGS=-lpvm3 -L/net/local/pvm3/lib/LINUX64 -lm

all: master slave

master: master.o slave.o
	@$(CC) slave.o master.o -o master $(LDFLAGS)

server.o: slave.c 
	@$(CC) -c slave.c -o slave.o $(CFLAGS)

master.o: master.c
	@$(CC) -c master.c -o master.o $(CFLAGS)

clean:
	@rm -f *.o

mrproper: clean
	@rm -f master slave
